package com.recorder.ui.file

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.recorder.R
import com.squareup.picasso.Picasso
import kotlinx.android.synthetic.main.activity_image.*
import java.io.File

/**
 * Created by YWQ on 2018/9/17.
 * 包名:com.recorder.ui.file
 * 描述:
 */

class ImageActivity : AppCompatActivity() {


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContentView(R.layout.activity_image)

        mBack.setOnClickListener { finish() }

        //   mImage.setImageURI("")
        val path = intent.getStringExtra("path")
        Picasso.with(this)
                .load(File(path))


                .into(mImage);


        mImage.setOnClickListener { finish() }

    }


}

